import { applyMiddleware, createStore, combineReducers } from "redux";
import thunk from "redux-thunk";

import homeStore from "./homeStore";
import mainStore from "./mainStore";

const reducers = combineReducers({
  home: homeStore,
  main: mainStore
});

const store = createStore(reducers, applyMiddleware(thunk));

export default store;